
<?php
include_once 'parsers/parser.php';
include_once 'classes/News.php';
include_once 'functions/calculateWeight.php';
include_once 'functions/NewsSort.php';
include_once 'functions/printNews.php';
include_once 'functions/searchString.php';

function getAllNews(){
	$property = 'properties/rssFeeds.xml';
	$arrayRss = simplexml_load_file($property);
	$arrayNewsAll = array();
	foreach ($arrayRss as $rss) {
		$rssSource = $rss->rssLocal;
		$rssName = $rss->name;
		$rssShortName = $rss->shortName;
		$arrayNews =  parse($rssSource,$rssName, $rssShortName);
		$arrayNewsAll = array_merge($arrayNewsAll, $arrayNews);
	}

	return($arrayNewsAll);
}
?>
